package com.zndroid.nfc;

import android.text.SpannableString;

/**
 * Created by lzy on 2021/9/8.
 *
 * 'NFC' devices statues listener
 */
public interface INFC {
    /**
     * running log
     *
     * @param txt log txt
     * */
    void console(SpannableString txt);
    /**
     * current devices support 'NFC' or not,
     * if 'false' , means not support, try call {@link NFC#getInstance()#openNFCSetting(android.content.Context c)} open 'NFC' enable switch.
     *
     * @param isSupport true or false
     * */
    void onSupport(boolean isSupport);
    /**
     * current devices is valid, means can deal it.
     * @param serialNumber devices serial id
     * */
    void onValid(String serialNumber);
    /**
     * current devices is invalid, means can not deal it.
     * */
    void onInvalid();
}
